//
//  CQCycleAdsView.m
//  AppCommonUICollect
//
//  Created by ciyouzen on 2019/10/22.
//  Copyright © 2019 dvlproad. All rights reserved.
//

#import "CQCycleAdsView.h"

@interface CQCycleAdsView () {
    
}


@end


@implementation CQCycleAdsView

/*
*  初始化广告栏
*
*  @param placeholderImage      默认占位图
*  @param clickItemBlock        点击Item的回调
*
*  @return 广告栏
*/
- (instancetype)initWithPlaceholderImage:(nullable UIImage *)placeholderImage
                          clickItemBlock:(void(^ _Nullable)(NSInteger index))clickItemBlock
{
    self = [super initWithPlaceholderImage:placeholderImage clickItemBlock:clickItemBlock];
    if (self) {
        self.infiniteLoop = YES;
        self.autoScroll = YES;
    }
    return self;
}


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
